import request from '@/utils/request'

// 查询诊断报告列表
export function listDiagnosisreport(query) {
  return request({
    url: '/system/diagnosisreport/list',
    method: 'get',
    params: query
  })
}
// 查询诊断报告列表
export function exportStatistics(query) {
  return request({
    url: '/system/diagnosisreport/statistics',
    method: 'get',
    params: query
  })
}

// 查询诊断报告列表
export function genDiagnosisreport(query) {
  return request({
    url: '/system/diagnosisreport/generate',
    method: 'get',
    params: query
  })
}

// 查询诊断报告详细
export function getDiagnosisreport(reportId) {
  return request({
    url: '/system/diagnosisreport/' + reportId,
    method: 'get'
  })
}

// 新增诊断报告
export function addDiagnosisreport(data) {
  return request({
    url: '/system/diagnosisreport',
    method: 'post',
    data: data
  })
}

// 修改诊断报告
export function updateDiagnosisreport(data) {
  return request({
    url: '/system/diagnosisreport',
    method: 'put',
    data: data
  })
}

// 删除诊断报告
export function delDiagnosisreport(reportId) {
  return request({
    url: '/system/diagnosisreport/' + reportId,
    method: 'delete'
  })
}
